//
//  Constant.h
//  ios-supplier
//
//  Created by feynmanyuan on 15/4/15.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#define ApplicationMainColor          0xfd3f27
#define ApplicationTitleColor         0xFFFFFF
#define PanelBgColor                  0xF1F1F1

#define ApplicationColor              UIColorFromRGB(ApplicationMainColor)
#define TabarPanelColor               UIColorFromRGB(0xE7E2DD)

#define TextColorDefault              UIColorFromRGB(0x232323)
#define TextColorLight                UIColorFromRGB(0x8C8C8C)
#define TextColorImportant            UIColorFromRGB(ApplicationMainColor)
#define TextColorRemark               UIColorFromRGB(0xBC6000)
#define TextColorSpecialButton        UIColorFromRGB(0x2B9EA3)
#define TextColorImportButton         UIColorFromRGB(ApplicationMainColor)

#define LineColorDefault              UIColorFromRGB(0xE1E1E1)
#define LineColorImportant            UIColorFromRGB(ApplicationMainColor)

#define PanelBgColorDefault           UIColorFromRGB(0xF1F1F1)
#define PanelBgColorRemark            UIColorFromRGB(0xFFEDDC)
#define PanelBgColorImportant         UIColorFromRGB(0xE43A30)

#define ButtonBgColorImportant         UIColorFromRGB(0xE43A30)

#define ImageBoderColorDefault        UIColorFromRGB(0xEEEEEE)

#define SearchTextFieldBg             UIColorFromRGB(0xf1f2f6)

#define ImageDefaultPlaceholder       @"pr_none"

#define DSDefaultResult               true

#define DeviceTokenRegisteredKEY      @"JFBDeviceRegisterKey"
#define DeviceTokenStringKEY          @"JFBDeviceKey"

#define DefaultRemark                 @"用户无特殊要求"

#define IS_OS_8_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
#define IS_OS_7_OR_LATER ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)

#define TopSizeFix                    64

#define kOrderCellSpacing             10
#define kOrderCellMargin              12
#define kOrderCellHeaderHeight        36
#define kOrderCellBottomHeight        44
#define kOrderCellEachSpacing         15
#define kOrderCellImageSize           50

#define kBottomBtnContainerHeight     60

#define TextFontSizeBH1               22
//40px
#define TextFontSizeH1                18
//36px
#define TextFontSizeH2                17
//28px
#define TextFontSizeH3                15
//26px
#define TextFontSizeH4                14
//20px
#define TextFontSizeH5                10

#ifndef ios_supplier_Constant_h
#define ios_supplier_Constant_h

//未处理的状态
#define kOrderStatusUndealer          3
//配送中的状态
#define kOrderStatusDeliveries        4
//完成的状态
#define kOrderStatusComplete          5
//拒绝的状态
#define kOrderStatusRefuse            -1

#define ammapApiKey @"40b9a4b1552cc15de0f5017f58101854"

#define kEdgesLayoutFix               IS_OS_7_OR_LATER ? 64 : 0

#define CCAlert(TITLE,MSG) [[[UIAlertView alloc] initWithTitle:(TITLE) \
                                                                message:(MSG) \
                                                                delegate:nil \
                                                                cancelButtonTitle:@"确定" \
                                                                otherButtonTitles:nil] show]

#endif
